<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="circleAlbumList.title"/></title>
    <meta name="heading" content="<fmt:message key='circleAlbumList.heading'/>"/>
    <meta name="menu" content="CircleAlbumMenu"/>
</head>

<div id="search">
<form method="get" action="${ctx}/circleAlbums" id="searchForm">
    <input type="text" size="20" name="q" id="query" value="${param.q}"
           placeholder="Enter search terms..."/>
    <input type="submit" value="<fmt:message key="button.search"/>"/>
</form>
</div>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editCircleAlbum"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="circleAlbums" class="table" requestURI="" id="circleAlbumList" export="true" pagesize="25">
    <display:column property="albumId" sortable="true" href="editCircleAlbum" media="html"
        paramId="albumId" paramProperty="albumId" titleKey="circleAlbum.albumId"/>
    <display:column property="albumId" media="csv excel xml pdf" titleKey="circleAlbum.albumId"/>
    <display:column property="albumTitle" sortable="true" titleKey="circleAlbum.albumTitle"/>
    <display:column property="cmntNum" sortable="true" titleKey="circleAlbum.cmntNum"/>
    <display:column property="crDate" sortable="true" titleKey="circleAlbum.crDate"/>
    <display:column property="favoritesNum" sortable="true" titleKey="circleAlbum.favoritesNum"/>
    <display:column property="isApprove" sortable="true" titleKey="circleAlbum.isApprove"/>
    <display:column property="picBig" sortable="true" titleKey="circleAlbum.picBig"/>
    <display:column property="picDesc" sortable="true" titleKey="circleAlbum.picDesc"/>
    <display:column property="picSmall" sortable="true" titleKey="circleAlbum.picSmall"/>
    <display:column property="pointNum" sortable="true" titleKey="circleAlbum.pointNum"/>
    <display:column property="urlAddress" sortable="true" titleKey="circleAlbum.urlAddress"/>
    <display:column property="userId" sortable="true" titleKey="circleAlbum.userId"/>
    <display:column property="userName" sortable="true" titleKey="circleAlbum.userName"/>
    <display:column property="version" sortable="true" titleKey="circleAlbum.version"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="circleAlbumList.circleAlbum"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="circleAlbumList.circleAlbums"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="circleAlbumList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="circleAlbumList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="circleAlbumList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editCircleAlbum"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("circleAlbumList");
</script>
